package com.trt.ecommerce.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h1>通过 Kafka 传递的消息对象</h1>
 * */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QinyiMessage {

    private Integer id;
    private String projectName;
    private String org;
    private String author;
    private String version;

    /**
     * <h2>返回一个默认的消息,方便使用</h2>
     *
     */
    public static QinyiMessage defaultMessage() {
        return new QinyiMessage(1, "e-commerce-stream-client", "itttao.com", "Tantao", "1.0");
    }

}
